home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 2 / ETO Development Tools 2.iso / Essentials / Developer Essentials Nov 90 / Apple II / Apple.II.partition / Tools / Technical.Notes / IIGS / TN.IIGS.092 < prev    next >
Encoding:
Text File  |  1990-09-21  |  2.3 KB  |  74 lines  |  [TEXT/pdos]

  1. Apple II
  2. Technical Notes
  3. _____________________________________________________________________________
  4.                                                   Developer Technical Support
  5.  
  6. Apple IIgs
  7. #92:    Twisted Tales of TextEdit
  8.  
  9. Written by:    C.K. Haun <TR> and Dave Lyons                   September 1990
  10.  
  11. This Technical Note discusses some undocumented features and some bugs in the 
  12. TextEdit tool set through System Software 5.0.3.
  13. _____________________________________________________________________________
  14.  
  15.  
  16. TEInsert
  17.  
  18. Using the TEInsert call on an invisible TextEdit record causes the screen to 
  19. scroll, exactly as if the TextEdit record were visible.
  20.  
  21. If you use LETextBox2 style text as input for a TEInsert call, any style 
  22. change information contained at the end of the LETextBox2 text is ignored.  To 
  23. ensure that the style change is not ignored, append an additional character at 
  24. the end of the block, then delete (with TESetSelect and TEDelete) the extra 
  25. character after the TEInsert call.
  26.  
  27.  
  28. TEGetText
  29.  
  30. The documentation for TEGetText says that a dataFormat value of $4 returns the 
  31. text as "Formatted for input to LineEdit LETextBox2".  This is not a reliable 
  32. return method--this call may or may not succeed.  Greater chance for success 
  33. occurs with less than 4,000 characters in the TextEdit record.
  34.  
  35.  
  36. TEClick
  37.  
  38. Using TEClick or TestControl on an inactive record currently causes that 
  39. record to activate.
  40.  
  41.  
  42. TERuler
  43.  
  44. Pixel tabbing values must all be greater than zero or TextEdit loops 
  45. infinitely on a tab.
  46.  
  47.  
  48. TEGetRuler & TESetRuler
  49.  
  50. TERuler, for the default ruler or any ruler that uses a tabType value of $1 
  51. returns a ruler four bytes longer than described in the documentation.  The 
  52. extra four bytes are all $FF, and they are the terminator characters for 
  53. tabType $2 rulers.  Expand your buffers by four bytes to prevent overwriting 
  54. any data.  TextEdit also expects the additional information on a TESetRuler 
  55. call, so you should pad your ruler with four $FF bytes if you are using a type 
  56. $1 ruler.
  57.  
  58.  
  59. TESetText 
  60.  
  61. Passing a zero-length class one input string (a word length string with the 
  62. word set to zero) to TESetText causes TextEdit to crash.
  63.  
  64.  
  65. TEPaintText
  66.  
  67. TEPaintText currently prints colored text in only four colors.
  68.  
  69.  
  70. Further Reference
  71. _____________________________________________________________________________
  72.   o  Apple IIgs Toolbox Reference, Volume 3
  73.  
  74.